package com.tensquare.raddit.costomer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "xiaoming")
public class Customerl {
    @RabbitHandler
    public  void getMsg(String msg){
        System.out.println("xiaoming"+msg);
    }
}
